{include file='public/head'}
<style>
    html, body { height:100%; overflow:hidden; }
    body { margin:0; }
</style>
<body>
<div id="altContent">
    <h1>美图秀秀</h1>
</div>
</body>
{include file='public/foot'}
<script src="http://open.web.meitu.com/sources/xiuxiu.js" type="text/javascript"></script>
<!-- 提示:: 如果你的网站使用https, 将xiuxiu.js地址的请求协议改成https即可 -->
<script type="text/javascript">
    window.onload = function () {
        var layer = layui.layer;
        /*第1个参数是加载编辑器div容器，第2个参数是编辑器类型，第3个参数是div容器宽，第4个参数是div容器高*/
        xiuxiu.setLaunchVars("customMenu", ["decorate"]);
        xiuxiu.embedSWF("altContent", 3, "100%", "100%");

        //修改为您自己的图片上传接口
        xiuxiu.setUploadURL("{$meituupload}");
        xiuxiu.setUploadType(2);
        xiuxiu.setUploadDataFieldName("Filedata");
        xiuxiu.onInit = function () {
            xiuxiu.loadPhoto("{$url}");//修改为要处理的图片url
        }
        xiuxiu.onUploadResponse = function (data) {
			layer.msg(data);
            //alert("上传响应" + data); 可以开启调试
        }
    }
</script>